﻿<%@ CODEPAGE=65001 %>
<% 'Option Explicit %>
<% 'On Error Resume Next %>
<% Response.Charset="UTF-8" %>
<% Response.Buffer=True %>
<!-- #include file="../../c_option.asp" -->
<!-- #include file="../../../zb_system/function/c_function.asp" -->
<!-- #include file="../../../zb_system/function/c_system_lib.asp" -->
<!-- #include file="../../../zb_system/function/c_system_base.asp" -->
<!-- #include file="../../../zb_system/function/c_system_plugin.asp" -->
<!-- #include file="../p_config.asp" -->
<%
Call System_Initialize()

If CheckpluginState("downloadcounter") = False Then Call ShowError(48)

If Request.QueryString("id") = Empty Or IsNumeric(Request.QueryString("id")) = False Then
Response.ContentType="application/x-javascript"
%>
function GetDownloadTimes(id){
	$.get(str00+"zb_users/plugin/downloadcounter/times.asp?id="+id, function(result){
	$("#download_times"+id).html(result);
	});
}
<%
Else
    Dim id
	id = CInt(Request.QueryString("id"))
	Dim temprs,num
	Set temprs = objConn.Execute("select * FROM blog_UpLoad WHERE [ul_ID]="&id)
	num = temprs("ul_DownNum")
	Set temprs = Nothing
	Response.Write "(下载次数:"&num&")"
End If
%>